package de.rwth.dbis.ugnm.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.xml.bind.annotation.XmlRootElement;

@Entity
@Table(name = "MEDIUM")
@NamedQueries( { @NamedQuery(name = "Medium.findAll", query = "SELECT m FROM Medium m"),
		@NamedQuery(name = "Medium.findMedium", query = "SELECT m FROM Medium m where m.url=:url")
	})
@XmlRootElement
public class Medium {
	
	@Id
	@Column(name = "ID")
	private int id;
	
	@Column(name = "URL")
	private String url;
	
	@Column(name = "DESCRIPTION")
	private String description;

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return id;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUrl() {
		return url;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getDescription() {
		return description;
	}
}
